﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPageAdmin.master" AutoEventWireup="true"
    CodeFile="Default3.aspx.cs" Inherits="Admin_Default3" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <script>
      
    </script>
   
    <div class="mainy">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1">
            <ProgressTemplate>
                <img src="../images/loading_2.gif" />
            </ProgressTemplate>
        </asp:UpdateProgress>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <table>
                <tr>
                    <td>df</td>
                </tr>
                </table>
                <asp:Button ID="btn_on" runat="server" Text="on" OnClick="btn_Click" />
                <asp:DropDownList ID="drop" runat="server" AutoPostBack="true">
                    <asp:ListItem Value="1" Text="0"></asp:ListItem>
                    <asp:ListItem Value="2" Value1></asp:ListItem>
                </asp:DropDownList>
                <asp:TextBox ID="txt" runat="server"></asp:TextBox>
            </ContentTemplate>
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="btn" EventName="Click" />
            </Triggers>
        </asp:UpdatePanel>
        <asp:Button ID="btn" runat="server" Text="off" OnClick="btn_Click" />
        <script type="text/javascript">
            var prm = Sys.WebForms.PageRequestManager.getInstance();
            prm.add_initializeRequest(InitializeRequest);
            prm.add_endRequest(EndRequest);
            var postBackElement;
            function InitializeRequest(sender, args) {
                if (prm.get_isInAsyncPostBack())
                    args.set_cancel(true);
                postBackElement = args.get_postBackElement();

                if (postBackElement.id == 'ContentPlaceHolder1_btn')
                    $get('ContentPlaceHolder1_UpdateProgress1').style.display = 'block';
            }
            function EndRequest(sender, args) {
                if (postBackElement.id == 'ContentPlaceHolder1_btn')
                    $get('ContentPlaceHolder1_UpdateProgress1').style.display = 'none';
            }
        </script>
    </div>
</asp:Content>
